﻿using System;
using FishSimulation.Model;
namespace FishSimulation.Views {
    public class ViewBase : System.Windows.Controls.UserControl {
        public event ViewBaseClickedHandler ViewBaseClicked;
        public delegate void ViewBaseClickedHandler(ViewBase sender, System.Windows.Input.MouseButtonEventArgs e);
        public void OnViewBaseClicked(ViewBase sender, System.Windows.Input.MouseButtonEventArgs e) {
            if (ViewBaseClicked != null)
                this.ViewBaseClicked(sender, e);
        }

        public virtual ModelBase GetPropertyGridItem() {
            return null;
        }
    }
}
